package com.event.system.domain;

import com.event.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class SysEvent extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 展会区域主键ID
     */
    private Long regionId;

    /**
     * 展会分类ID
     */
    private Long sortId;

    /**
     * 展会分类
     */
    private String sortName;

    /**
     * 展会名单名称
     */
    private String eventName;

    /**
     * 展会简介
     */
    private String eventProfiles;

    /**
     * 展会地址
     */
    private String eventAddress;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 摊位总编号
     */
    private String eventNum;

    /**
     * 状态（1：申请中；2：申请通过，3：申请失败）
     */
    private Integer orderStatus;

    /**
     * 用户ID
     */
    private Long userId;

    public SysEvent() {
    }

    public SysEvent(Long regionId, Long sortId, String sortName, String eventName, String eventProfiles, String eventAddress, Date startTime, Date endTime, String eventNum, Integer orderStatus, Long userId) {
        this.regionId = regionId;
        this.sortId = sortId;
        this.sortName = sortName;
        this.eventName = eventName;
        this.eventProfiles = eventProfiles;
        this.eventAddress = eventAddress;
        this.startTime = startTime;
        this.endTime = endTime;
        this.eventNum = eventNum;
        this.orderStatus = orderStatus;
        this.userId = userId;
    }

    public Long getRegionId() {
        return regionId;
    }

    public void setRegionId(Long regionId) {
        this.regionId = regionId;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public String getEventProfiles() {
        return eventProfiles;
    }

    public void setEventProfiles(String eventProfiles) {
        this.eventProfiles = eventProfiles;
    }

    public String getEventAddress() {
        return eventAddress;
    }

    public void setEventAddress(String eventAddress) {
        this.eventAddress = eventAddress;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getEventNum() {
        return eventNum;
    }

    public void setEventNum(String eventNum) {
        this.eventNum = eventNum;
    }

    public Long getSortId() {
        return sortId;
    }

    public void setSortId(Long sortId) {
        this.sortId = sortId;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "SysEvent{" +
                "regionId=" + regionId +
                ", sortId='" + sortId + '\'' +
                ", sortName='" + sortName + '\'' +
                ", eventName='" + eventName + '\'' +
                ", eventProfiles='" + eventProfiles + '\'' +
                ", eventAddress='" + eventAddress + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", eventNum='" + eventNum + '\'' +
                ", orderStatus='" + orderStatus + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
